﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ShellAnywhere.Model
{
	public class Alias : Target, IVerb
	{
		#region ctors
		public Alias(string name, IVerb verb) : base(name)
		{
			Verb = verb;
		}
		#endregion ctors

		#region props
		public IVerb Verb { get; set; }
		#endregion props

		#region methods
		public bool Execute(ITarget target, IParam[] paramz)
		{
			return Verb.Execute(target, paramz);
		}
		public override string ToString()
		{
			string toString = GetType().Name;

			toString += "->" + Verb;

			return toString;
		}
		#endregion methods

		#region fields
		#endregion fields
	}
}
